@import url('//at.alicdn.com/t/font_1684827_o20c2elrbsa.css');
// @import '../iconfont/iconfont.css';

*, :after, :before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Chinese Quote,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
  font-size: 14px;
  font-variant: tabular-nums;
  line-height: 1.5;
  color: rgba(0,0,0,.65);
  background-color: #fff;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body {
  width: 100%;
  height: 100%;
}

a {
  color: #409EFF;
  background-color: transparent;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  -webkit-text-decoration-skip: objects;
}

h1 {
  margin: 0;
}

.clearfix {
  &::before,
  &::after {
    display: table;
    content: "";
  }
  &::after {
    clear: both;
  }
}

#nprogress .spinner-icon {
  border: solid 2px transparent;
  border-top-color: #d02c39 !important;
  border-left-color: #d02c39 !important;
}

#nprogress .bar {
  background: #d02c39 !important;
}

.el-form-item__label {
  color: rgba(#000, .85);
}

.el-table thead {
  color: rgba(#000, .85);
}

.el-submenu__title i {
  color: #fff;
}

// 布局
.app-layout {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-flex: 1;
  -ms-flex: auto;
  flex: auto;
  background: #f0f2f5;
  min-height: 0;
}

.app-layout,
.app-layout * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.layout.app-layout {
  height: auto;
  overflow-x: hidden;
}

.layout.app-layout.app-layout-has-sider {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
}

.app-layout.app-layout-has-sider>.app-layout,
.app-layout.app-layout-has-sider>.layout-content {
  overflow-x: hidden;
}

.layout-header, .layout-footer {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.layout-footer {
  background: #f0f2f5;
  padding: 24px 50px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  padding: 0;
}

// 侧边栏菜单
.layout-sider {
  transition: all .2s;
  position: relative;
  background: #20222a;
  min-width: 0;
  box-shadow: 2px 0 6px rgba(0,21,41,.35);
  position: relative;
  z-index: 10;
  min-height: 100vh;
  flex: 0 0 256px;
  max-width: 256px;
  min-width: 256px;
  width: 256px;
  &.fixed-sidemenu{
    position: fixed;
    height: 100%;
  }
}

.layout-inside {
  transition: all .2s;
}

.layout-sider-children {
  height: 100%;
  padding-top: 0.1px;
  margin-top: -0.1px;
}

// 侧边导航的样式
.sider {
  .layout-sider-children {
    overflow-y: hidden;
  }
  .logo {
    position: relative;
    height: 60px;
    text-align: center;
    overflow: hidden;
    line-height: 60px;
    background: #d02c39;
    padding: 0 20px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    .logo-img {
      width: 100%;
      margin: 0;
      margin-top: 3px;
    }
    h1 {
      color: #fff;
      font-size: 18px;
      margin: 0;
      font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
      font-weight: normal;
      vertical-align: middle;
      text-decoration: none;
    }
  }
  .el-menu {
    border-right: 0;
  }
  .el-menu-vertical {
    margin-top: 20px;
  }
  .el-menu-item {
    padding: 0 30px;
  }
  .el-submenu {
    .el-menu-item {
      font-size: 14px;
      height: 50px;
      line-height: 50px;
      background-color: rgba(0,0,0,.3) !important;
    }
  }
  .el-menu-item .icon,
  .el-submenu .icon {
    vertical-align: middle;
    margin-right: 15px;
    width: 26px;
    text-align: center;
    font-size: 18px;
  }
}

// 头部

.layout-header,
.layout-footer {
  flex: 0 0 auto;
}

.layout-header {
  padding: 0;
  height: 60px;
  line-height: 60px;
}

.layout {
  &.app-layout {
    .header {
      height: 60px;
      padding: 0 12px 0 0;
      background: #fff;
      box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
      position: relative;
      .user-wrapper {
        float: right;
        height: 100%;
        .action {
          cursor: pointer;
          padding: 0 12px;
          display: inline-block;
          -webkit-transition: all 0.3s;
          transition: all 0.3s;
          height: 100%;
          color: rgba(0, 0, 0, 0.65);
          &:hover {
            background: rgba(0, 0, 0, 0.025);
          }
        }
      }
    }
  }
}

.el-menu--collapse {
  width: 80px;
  .el-tooltip {
    padding-left: 30px !important;
  }
}

.tb-action {
  .el-button--text {
    font-size: 14px;
    font-weight: normal;
  }
}

.table-pagination-wrapper {
  text-align: right;
  padding: 16px 0;
}

.table-operator {
  margin-bottom: 18px;
}

// 表单 programs
.ui-form {
  &.el-form--label-top {
    .el-form-item__label {
       padding: 0 0 2px;
    }
  }
  .el-form-item {
    margin-bottom: 15px;
  }
}

.programs-breadcrumb {
  display: inline-block;
  font-size: 18px;
  line-height: 28px;
  .el-breadcrumb__inner {
    color: #303133;
    font-weight: bold;
  }
}

// 页面头部 programs
.page-header {
  position: relative;
  background-color: #FCFCFC;
  padding: 14px 20px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-bottom: 1px solid #dce3e8;
}
.page-header-title-bar {
  display: flex;
  margin-bottom: 15px;
  height: 28px;
  h5 {
    display: inline-block;
    color: #303133;
    font-size: 18px;
    line-height: 28px;
    vertical-align: middle;
    margin: 0;
  }
}
.page-header-tools {
  display: inline-block;
  margin-left: 20px;
  .tool-item {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
  }
  .edm-action-button {
    line-height: 16px;
    padding: 5px 10px;
    border-radius: 2px
  }
}

.table-page-search-wrapper {
  .el-form--inline {
    .el-form-item {
      margin-bottom: 10px;
    }
  }
}

// 表格操作按钮样式
.tb-action {
  .tb-action-button {
    & + .tb-action-button {
      position: relative;
      margin-left: 20px;
      &::after {
        content: "";
        position: absolute;
        top: 9px;
        left: -12px;
        width: 1px;
        height: 1em;
        vertical-align: middle;
        background-color: #DCDFE6;
      }
    }
  }
}

.table-operations-container {
  position: relative;
  font-size: 14px;
  overflow: hidden;
  .operations {
    display: flex;
    justify-content: flex-end;
    position: relative;
  }
  .operations-item {
    margin: 3px 0;
    padding: 0 6px;
    line-height: 14px;
    &+.operations-item {
      border-left: 1px solid #dcdee0;
      border-left-color: #dcdee0;
    }
  }
}